﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL.Entity;

namespace DAL.Persistencia
{
    public class ServicoTipoCategDAL
    {

        NewTierraEntities Con;

        public ServicoTipoCategDAL()
        {
            Con = new NewTierraEntities();
        }

        public bool VerificaExiste(int IdTipoServico)
        {
            try
            {
                return Con.S_Servicos_Tipo_Categ.Where(s => s.Tipo_Id == IdTipoServico).Count() != 0;
            }
            catch 
            {
                throw;
            }
        }

    }
}
